import request from '@/utils/request'

// 查询用户列表
export function listUser(page,pageSize) {
    return request({
        url: '/service-user/user/list',
        method: 'get',
        params: {
            page,
            pageSize
        }
    })
}

// 修改用户状态
export function changeUserStatus(id) {
    return request({
        url: '/service-user/user/setStatus/'+id,
        method: 'get',
    })
}

// 修改用户
export function updateUser(data) {
    return request({
        url: '/user/update',
        method: 'put',
        data: data

    })
}
//删除用户
export function delUser(ids) {
    return request({
        url: '/service-user/user/batchDelete/',
        method: 'delete',
        ids
    })
}

//获取用户
export function getUser(id) {
    return request({
        url: '/service-user/user/userInfo/'+id,
        method: 'get',
    })
}



